package com.yjd.comm.borrow.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.borrow.model.CreditModel;
import com.yjd.comm.system.dto.OperParamDto;

/**
 * <b>description</b>：信用等级业务接口<br>
 * <b>time</b>：2014-11-17 10:33:18 <br>
 * <b>author</b>：  ready likun_557@163.com
 */
public interface ICreditService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public CreditModel insert(CreditModel model, OperParamDto operParamDto) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(CreditModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param credit_id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long credit_id) throws Exception;

	public void deleteArr(String[] creditIdArr, OperParamDto operParamDto) throws Exception;

}
